# Translation Dict
event_names = {1:"EVENT_INIT",
               3:"EVENT_ITTERATION",
               5:"EVENT_LMOUSEUP",
               7:"EVENT_RMOUSEUP",
               9:"EVENT_OFFSCREEN",
               546:"EVENT_UP_KEY_UP",
               548:"EVENT_DOWN_KEY_UP",
               -546:"EVENT_up_KEY_DOWN",
               -548:"EVENT_DOWN_KEY_DOWN",
               550:"EVENT_RIGHT_KEY_UP",
               552:"EVENT_LEFT_KEY_UP",
               -550:"EVENT_RIGHT_KEY_DOWN",
               -552:"EVENT_LEFT_KEY_DOWN"}


def hide_window(widget=None,param2=None):
    """Standard Method to prevent a window being destroyed"""
    widget.hide()
    return True
